import { requestClient } from '#/api/request';

// 抖店类目列表
export async function getDoudianCategory(data: any) {
  return requestClient.get<any>('doudian/getShopCategory', {
    params: data,
  });
}

// 获取对应类目发品规则doudian/getProductUpdateRule
export async function getProductUpdateRule(category_id: any, shopId: any) {
  return requestClient.get<any>('doudian/getProductUpdateRule', {
    params: {
      category_id,
      shopId,
    },
  });
}
// 获取品牌列表doudian/getBrandList
export async function getBrandList(category_id: any, shopId: any) {
  return requestClient.get<any>('doudian/getBrandList', {
    params: {
      category_id,
      shopId,
    },
  });
}

// 获取商品列表
export async function getProductList(data: any) {
  return requestClient.get<any>('business/getDouDianGoodsList', {
    params: data,
  });
}

// 同步商品列表
export async function syncProductList(data?: any) {
  return requestClient.post<any>('business/getDouDianGoodsList', data);
}
